package homework12月9号补交.homework2.d15;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.util.List;

/**
 * @Version 1.0
 * @Author:zhaoJiaCai
 * @Date:2019/12/8 星期日   19:26
 */
public class Test {
    public static void main(String[] args) throws Exception {
        List<String> strings = FileUtils.readLines(new File("D:\\ldea dashuju\\day.12.6\\src\\czxy\\homework2\\d15\\DemoClass.properties"));

        for (String string : strings) {
            String[] split = string.split("=");
            Class<?> aClass = Class.forName(split[1]);
            DemoClass demoClass = (DemoClass) aClass.newInstance();
            demoClass.run();
        }
    }
}
